package com.iweb.day08;

/**
 * @author WuYongheng
 * @date 2021/11/10
 * @description
 */
public class Test {

    public static int test1() {
        int ret = 0;
        try {
            int a = 5 / 0;
            return ret;
        } finally {
            return 2;
        }
    }
    public static int test2() {
        int ret = 0;
        try {
            int a = 5 / 2;
            return ret;
        } finally {
            int a = 666;
        }
    }

    public static void main(String[] args) {

        System.out.println(test1());
        System.out.println(test2());
    }
}
